;;; init-git.el --- git config -*- lexical-binding:t -*-
;;; Commentary:
;;; Code:

;; magit git客户端
(use-package magit
  :defer t
  :config
  (setq-default magit-diff-refine-hunk t)
  (setq auto-revert-check-vc-info t)
  (setq magit-completing-read-function #'selectrum-completing-read))

;; git todo 标识
(use-package magit-todos
  :defer t)

;; git-timemachine 时间线
(use-package git-timemachine
  :defer t)

;; git-commit
(use-package git-commit
  :defer t
  :hook (git-commit-mode . goto-address-mode))

;; diff-hl git修改高亮
(use-package diff-hl
  :defer t
  :config
  (global-diff-hl-mode t)
  (diff-hl-dired-mode t))

;; hl-todo 高亮TODO
(use-package hl-todo
  :defer t
  :hook (after-init . global-hl-todo-mode)
  :config
  (setq hl-todo-keyword-faces
        '(("TODO"   . "#FF0000")
          ("FIXME"  . "#FF0000")
          ("DEBUG"  . "#A020F0")
          ("GOTCHA" . "#FF4500")
          ("STUB"   . "#1E90FF")))
  )

(provide 'init-git)
;;; init-git.el ends here
